/*
 * @Author       : LuHeQiu
 * @Date         : 2021-09-30 15:32:07
 * @LastEditTime : 2021-09-30 16:05:03
 * @LastEditors  : LuHeQiu
 * @Description  : 
 * @FilePath     : \User\motor_driver.h
 * @HomePage     : https://www.luheqiu.com
 */
 
#ifndef __MOTOR_DRIVER_H
#define __MOTOR_DRIVER_H

#include "stm32f0xx.h"

#define PWM_DUTY_LIMIT 10000  //PWM占空比调节范围
#define MOTOR_NUM 1           //电机数量

void Motor_Init(void);
void Motor_SetPWMDuty(uint8_t nMotor, uint16_t nDuty);

void Encoder_Init(void);
uint16_t Encoder_GetValue(uint8_t nEncoder);

#endif
